package com.nbst.model.erp;

import com.nbst.model.base.OrderBy;

/**
 * @ClassName: MiniBom
 * @Description:简略版Bom
 * @author King
 * @date 2018年10月19日
 * 
 */
public class MiniBom  extends OrderBy implements Comparable<MiniBom> {

	/** id */
	private String id;

	/** pId */
	private String parentId;

	/** name */
	private String name;

	/** 父项长代码 */
	private String fNumber;

	/** 父项名称 */
	private String fName;

	/** 父项规格型号 */
	private String fModel;
	
	/** 父项物料内码 */
	private Integer fItemID;

	/** 子项单位 */
	private String fChildUnitName;

	/** 数量 */
	private Double fQty;

	/** 子项分录 */
	private Integer fEntryID;

	/** 子项长代码 */
	private String fChildNumber;

	/** 子项名称 */
	private String fChildName;
	
	/** 子项规格 */
	private String fChildModel;

	/** 子项用量 */
	private Double fChildQty;

	/** 子项物料部门 */
	private Integer fDepartment;

	/** 子项物料内码 */
	private Integer fChildUnitID;

	/** 子项物料属性 1外购 2自制 3委外加工 5 虚拟件 */
	private Integer fErpClsID;

	/** 排序号 */
	private Integer rank;

	/** 需求量 */
	private Double fTotal;

	/** 在制数 */
	private Double ppQty;

	/** 差数 正数为库存充盈 负数为库存不够 */
	private Double fDifference;
	
	/**库存量*/
	private Double fStockQty;
	
	public boolean open;
	
	/**子项物料内码*/
	private Integer fChildItemId;
	
	/**安全库存  备货数量*/
	private Double fSecInv;
	
	/**最小存量*/
	private Double fLowLimit;
	
	/**最小经济批量*/
	private Double fMinQty;
	
	/**订单需求数*/
	private Double fOrderNeedQty;
	
	/**上级备货数量，为上能备货数量-库存有的*/
	private Double fSuperInvQty;
	
	/**本级备货量*/
	private Double fInvQty;
	
	/**马达拆分出的零件数量*/
	private Double fDismantlQty;
	
	/**子项物料的换算率*/
	private Double fSecCoefficient;
	
	/**未除的子项用量*/
	private Double fAuxChildQty;
	
	/**子项物料默认仓库*/
	private Integer fDefaultLoc;
	
	public String getfNumber() {
		return fNumber;
	}

	public void setfNumber(String fNumber) {
		this.fNumber = fNumber;
	}

	public String getfName() {
		return fName;
	}

	public void setfName(String fName) {
		this.fName = fName;
	}

	public String getfModel() {
		return fModel;
	}

	public void setfModel(String fModel) {
		this.fModel = fModel;
	}

	public String getfChildUnitName() {
		return fChildUnitName;
	}

	public void setfChildUnitName(String fChildUnitName) {
		this.fChildUnitName = fChildUnitName;
	}

	public Double getfQty() {
		return fQty;
	}

	public void setfQty(Double fQty) {
		this.fQty = fQty;
	}

	public Integer getfEntryID() {
		return fEntryID;
	}

	public void setfEntryID(Integer fEntryID) {
		this.fEntryID = fEntryID;
	}

	public String getfChildNumber() {
		return fChildNumber;
	}

	public void setfChildNumber(String fChildNumber) {
		this.fChildNumber = fChildNumber;
	}

	public String getfChildName() {
		return fChildName;
	}

	public void setfChildName(String fChildName) {
		this.fChildName = fChildName;
	}

	public Double getfChildQty() {
		return fChildQty;
	}

	public void setfChildQty(Double fChildQty) {
		this.fChildQty = fChildQty;
	}

	public Integer getfDepartment() {
		return fDepartment;
	}

	public void setfDepartment(Integer fDepartment) {
		this.fDepartment = fDepartment;
	}

	public Integer getfChildUnitID() {
		return fChildUnitID;
	}

	public void setfChildUnitID(Integer fChildUnitID) {
		this.fChildUnitID = fChildUnitID;
	}

	public Integer getfErpClsID() {
		return fErpClsID;
	}

	public void setfErpClsID(Integer fErpClsID) {
		this.fErpClsID = fErpClsID;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getfTotal() {
		return fTotal;
	}

	public void setfTotal(Double fTotal) {
		this.fTotal = fTotal;
	}

	public Double getPpQty() {
		return ppQty;
	}

	public void setPpQty(Double ppQty) {
		this.ppQty = ppQty;
	}

	public Double getfDifference() {
		return fDifference;
	}

	public void setfDifference(Double fDifference) {
		this.fDifference = fDifference;
	}

	public Double getfStockQty() {
		return fStockQty;
	}

	public void setfStockQty(Double fStockQty) {
		this.fStockQty = fStockQty;
	}

	public boolean isOpen() {
		return open;
	}

	public void setOpen(boolean open) {
		this.open = open;
	}

	public Integer getfChildItemId() {
		return fChildItemId;
	}

	public void setfChildItemId(Integer fChildItemId) {
		this.fChildItemId = fChildItemId;
	}

	public String getfChildModel() {
		return fChildModel;
	}

	public void setfChildModel(String fChildModel) {
		this.fChildModel = fChildModel;
	}

	public Integer getfItemID() {
		return fItemID;
	}

	public void setfItemID(Integer fItemID) {
		this.fItemID = fItemID;
	}

	public Double getfSecInv() {
		return fSecInv;
	}

	public void setfSecInv(Double fSecInv) {
		this.fSecInv = fSecInv;
	}

	public Double getfLowLimit() {
		return fLowLimit;
	}

	public void setfLowLimit(Double fLowLimit) {
		this.fLowLimit = fLowLimit;
	}

	public Double getfMinQty() {
		return fMinQty;
	}

	public void setfMinQty(Double fMinQty) {
		this.fMinQty = fMinQty;
	}

	public Double getfOrderNeedQty() {
		return fOrderNeedQty;
	}

	public void setfOrderNeedQty(Double fOrderNeedQty) {
		this.fOrderNeedQty = fOrderNeedQty;
	}

	public Double getfSuperInvQty() {
		return fSuperInvQty;
	}

	public void setfSuperInvQty(Double fSuperInvQty) {
		this.fSuperInvQty = fSuperInvQty;
	}

	public Double getfInvQty() {
		return fInvQty;
	}

	public void setfInvQty(Double fInvQty) {
		this.fInvQty = fInvQty;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Double getfDismantlQty() {
		return fDismantlQty;
	}

	public void setfDismantlQty(Double fDismantlQty) {
		this.fDismantlQty = fDismantlQty;
	}

	public Double getfSecCoefficient() {
		return fSecCoefficient;
	}

	public void setfSecCoefficient(Double fSecCoefficient) {
		this.fSecCoefficient = fSecCoefficient;
	}

	public Double getfAuxChildQty() {
		return fAuxChildQty;
	}

	public void setfAuxChildQty(Double fAuxChildQty) {
		this.fAuxChildQty = fAuxChildQty;
	}

	public Integer getfDefaultLoc() {
		return fDefaultLoc;
	}

	public void setfDefaultLoc(Integer fDefaultLoc) {
		this.fDefaultLoc = fDefaultLoc;
	}

	@Override
	public String toString() {
		return "MiniBom [id=" + id + ", parentId=" + parentId + ", name=" + name + ", fNumber=" + fNumber + ", fName="
				+ fName + ", fModel=" + fModel + ", fItemID=" + fItemID + ", fChildUnitName=" + fChildUnitName
				+ ", fQty=" + fQty + ", fEntryID=" + fEntryID + ", fChildNumber=" + fChildNumber + ", fChildName="
				+ fChildName + ", fChildModel=" + fChildModel + ", fChildQty=" + fChildQty + ", fDepartment="
				+ fDepartment + ", fChildUnitID=" + fChildUnitID + ", fErpClsID=" + fErpClsID + ", rank=" + rank
				+ ", fTotal=" + fTotal + ", ppQty=" + ppQty + ", fDifference=" + fDifference + ", fStockQty="
				+ fStockQty + ", open=" + open + ", fChildItemId=" + fChildItemId + ", fSecInv=" + fSecInv
				+ ", fLowLimit=" + fLowLimit + ", fMinQty=" + fMinQty + ", fOrderNeedQty=" + fOrderNeedQty
				+ ", fSuperInvQty=" + fSuperInvQty + ", fInvQty=" + fInvQty + ", fDismantlQty=" + fDismantlQty
				+ ", fSecCoefficient=" + fSecCoefficient + ", fAuxChildQty=" + fAuxChildQty + "]";
	}

	@Override
	public int compareTo(MiniBom o) {
		return this.rank.compareTo(o.getRank());
	}

}
